<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/25
 * Time: 9:46
 */

namespace app\qgroup\validate;


use think\Validate;

class RegisterValidate extends Validate
{
    protected  $rule = [
        'qq'=>'require'
        ,'code'=>'chsDash|require'
    ];

    protected $message = [
        'qq.require'=>'非法访问CODE:QR'
        ,'code.require'=>'非法访问CODE:CR'
        ,'code.chsDash'=>'非法访问CODE:CC'
    ];

    protected $scene = [
        'getCode'=>['qq']
        ,'putCode'=>['qq','code']
        ,'queryCode'=>['qq']
    ];
}